package com.dorm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dorm.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 考勤记录实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("attendance")
public class Attendance extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long studentId;     // 学生ID
    private Long roomId;        // 房间ID
    private LocalDate date;     // 日期
    private String type;        // 类型：晚归/缺寝
    private String reason;      // 原因
    private String remark;      // 备注
}

